/**
 * 第三方模块配置文件
 * @type {{HapiSwagger: {info: {title: string, description: string, version: string}}, Good: {ops: {interval: number}, reporters: {myConsoleReporter: string[], myFileReporter: *[], myHTTPReporter: *[]}}}}
 */

const Squeeze = require('good-squeeze');

module.exports = {

    HapiSwagger: {
        info: {
            'title': 'Mock服务API介绍',
            'description': "源码:https://git.oschina.net/daoxiaozhang/mockdata",
            'version': '0.0.1'
        }
    },
    Good: {
        reporters: {
            myConsoleReporter: [{
                module: 'good-squeeze',
                name: 'Squeeze',
                args: [{ log: '*', response: '*' }]
            }, {
                module: 'good-console'
            }, 'stdout'],
            myHTTPReporter: [{
                module: 'good-squeeze',
                name: 'Squeeze',
                args: [{ response:'*',request:'*',error: '*' }]
            }, {
                module: 'good-squeeze',
                name: 'SafeJson'
            }, {
                module: 'good-file',
                args: ['./logs/error']
            }]
        }
    }
}